﻿namespace code2
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚密码-以小写字母为例
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Cypher();
        }
        static void  Cypher()
        {
            Console.WriteLine("请输入密钥");
            string key = Console.ReadLine();
            Console.WriteLine("请输入明文");
            string plain = Console.ReadLine();
            var coder = new MySecurity();
            coder.Key = key.ToLower();
            coder.Plain = plain.ToLower();
            coder.Encryption();
            Console.Write(coder.Cypher);           
        }
    }
}